//package com.example.admin.yuejian21.Adapter;
//
//
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ImageView;
//import android.widget.SeekBar;
//import android.widget.TextView;
//import android.widget.VideoView;
//
//import com.example.admin.yuejian21.Bean.VideoList;
//import com.example.admin.yuejian21.R;
//
//import static android.R.id.list;
//
//
///**
// * Created by Lee1 on 2017/11/3.
// */
//
////public class VideoAdapter extends RecyclerView.Adapter{
////    private static  int UpUI=1;
////    private VideoViewHolder videoViewHolder;
// //   private Context context;
////    List<VideoList.MvideoEntity> list;
////    public VideoAdapter(Context context,List<VideoList.MvideoEntity> list)
////    {
////        this.context=context;
////        this.list=list;
////    }
//
//  //  @Override
// //   public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
//      //  View view= LayoutInflater.from(context).inflate(R.layout.cardview_masterkt,viewGroup,false);
//    //    VideoViewHolder videoViewHolder=new VideoViewHolder(view);
//   //     return videoViewHolder;
//  //  }
//
//   // @Override
//    //public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i) {
//     //  VideoList.MvideoEntity  entity=list.get(i);
//      //  videoViewHolder= (VideoViewHolder) viewHolder;
//        //视频地址
//     //   controllerVideo();
//     //  Uri videoURL= Uri.parse(Bitmap.Config.VIDEO_URL+entity.getUrl());
//    //   videoViewHolder.videoView.setVideoPath(videoURL.toString());
//    //    videoViewHolder.videoView.start();
//    //  UIhandler.sendEmptyMessage(UpUI);
//  //  }
//
// //@Override
////   public int getItemCount() {
////     return 0;
////    }
////
////    public class VideoViewHolder extends RecyclerView.ViewHolder{
////        VideoView videoView;
////        TextView tiele;
////        ImageView video_play;
////        TextView hint;
////        SeekBar programe;
////
////        public VideoViewHolder(View itemView) {
////            super(itemView);
////
////            videoView=(VideoView)itemView.findViewById(R.id.videoView);
////
////        }
////    }
////    public void controllerVideo()
////    {
////        videoViewHolder.video_play.setOnClickListener(new View.OnClickListener() {
////            @Override
////            public void onClick(View v) {
////                if (videoViewHolder.videoView.isPlaying())
////                {
////                    videoViewHolder.video_play.setImageResource(R.drawable.ic_stop);
////                    videoViewHolder.videoView.pause();
//           //         UIhandler.removeMessages(UpUI);
//                }
//            //    else {
//            //        videoViewHolder.video_play.setImageResource(R.drawable.ic_start);
//             //       videoViewHolder.videoView.start();
//            //        UIhandler.sendEmptyMessage(UpUI);
//                }
//          //  }
//       // });
//       // videoViewHolder.programe.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
////            @Override
////            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
////
////            }
////
////            @Override
////            public void onStartTrackingTouch(SeekBar seekBar) {
////
////            }
////
////            @Override
////            public void onStopTrackingTouch(SeekBar seekBar) {
////
////            }
////        });
////
////}
//
//
//}
